package com.hulk.ratel.service.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.NotBlank;

import javax.validation.constraints.Pattern;

/**
 * @author cmt
 *
 */
@ToString(callSuper=true)
public class HeadReqDTO extends BaseDTO {


	private static final long serialVersionUID = 1L;
	@ApiModelProperty(value="请求日期",name="reqDate",dataType="String",required= true, example="YYYYMMDD")
	@Getter
	@Setter
	@NotBlank(message="{up.HeadReqDTO.reqDate}")
	@Length(min=8,max=8,message="{up.HeadReqDTO.reqDate}")
	@Pattern(regexp = "^[0-9]+$" ,message="{up.HeadReqDTO.reqDate}")
	private String reqDate ;
	@ApiModelProperty(value="请求时间",name="reqTime",dataType="String",required= true, example="YYYYMMDDHHMMSS")
	@Getter
	@Setter
	@NotBlank(message="{up.HeadReqDTO.reqTime}")
	@Length(min=14,max=14,message="{up.HeadReqDTO.reqTime}")
	@Pattern(regexp = "^[0-9]+$" ,message="{up.HeadReqDTO.reqTime}")
	private String reqTime;

}
